﻿using Medical.Api.Read.Application.Command.Wms.WmsStoresCommand;
using Medical.Api.Read.Dto.WmsDto;
using Medical.Api.Read.Dto.WmsDto.WmsLssueDto;
using Medical.Api.Read.Dto.WmsDto.WmsOutDto;
using Medical.Api.Read.Dto.WmsDto.WmsStoresDro;
using Medical.Api.Read.Dto.WmsDto.WmsStorageDto;
using Medical.ErrorCode;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Medical.Api.Read.Service.WmsService
{
    /// <summary>
    /// 仓储读取服务层
    /// </summary>
    public interface IWmsService
    {
        #region 入库  WmsStorage


        #endregion

        Task<ApiResult<List<WmsStoresPageDto>>> GetStoresListAsync(QueryStoresDto dto);
        Task<List<WaitStoreDto>> GetWaitStoresListAsync();
        Task<MaterialDetailDto> GetMaterialByIdAsync(int id, int materialType);
        Task<ApiResult<WmsOutDetailReadDto>> GetOutCauseDetailByIdAsync(int id);
        /// <summary>
        /// 发放分页列表
        /// </summary>
        Task<ApiResult<ApiPageIng<WmsLssuePageDto>>> GetLssueByPageAsync(WmsLssueQueryDto queryDto);
        /// <summary>
        /// 发放详情
        /// </summary>
        Task<ApiResult<WmsLssueDetailReadDto>> GetLssueDetailByIdAsync(int id);
        /// <summary>
        /// 获取已审批的入库主表列表
        /// </summary>
        Task<List<WmsStoragePageDto>> GetApprovedStorageListAsync();
        /// <summary>
        /// 获取已审批的出库主表列表
        /// </summary>
        Task<List<WmsOutPageDto>> GetApprovedOutListAsync();
    }
}
